package login;

import http.HttpServlet;
import http.HttpServletRequest;
import http.HttpServletResponse;

import javax.servlet.annotation.WebServlet;
import java.io.IOException;

@WebServlet("/getLogineUser.s")
public class GetLogineUserServlet extends HttpServlet {
    @Override
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {
        String user = (String) request.getSssion().getAttribute("loginedUser");
        response.getWriter().append(user);
    }
}
